package com.example.walletspringbootproject.model.UserWallet.Entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户钱包
 */
public class UserWalletEntity implements Serializable {
    private String userUuid;

    private String userName;

    private BigDecimal walletIncome;

    private BigDecimal walletOutcome;

    private BigDecimal balanceFee;

    private Date createAt;

    private Date updateAt;

    private static final long serialVersionUID = 1111L;

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid == null ? null : userUuid.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public BigDecimal getWalletIncome() {
        return walletIncome;
    }

    public void setWalletIncome(BigDecimal walletIncome) {
        this.walletIncome = walletIncome;
    }

    public BigDecimal getWalletOutcome() {
        return walletOutcome;
    }

    public void setWalletOutcome(BigDecimal walletOutcome) {
        this.walletOutcome = walletOutcome;
    }

    public BigDecimal getBalanceFee() {
        return balanceFee;
    }

    public void setBalanceFee(BigDecimal balanceFee) {
        this.balanceFee = balanceFee;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userUuid=").append(userUuid);
        sb.append(", userName=").append(userName);
        sb.append(", walletIncome=").append(walletIncome);
        sb.append(", walletOutcome=").append(walletOutcome);
        sb.append(", balanceFee=").append(balanceFee);
        sb.append(", createAt=").append(createAt);
        sb.append(", updateAt=").append(updateAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}